package org.p2psimulator.entity.protocol.messages.gnutella.xrep;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

@SuppressWarnings ("unchecked")
public class XrepTrueVote  extends Message{


	public XrepTrueVote(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);
		// TODO Auto-generated constructor stub
	}

	// id da pollreply associada a este truevote
	private Id msgId;


	public String getName(){
		return MessageTypes.XREP_TRUEVOTE.getName();
	}

	public Id getPollReplyId() {
		return msgId;
	}
	public void setPollReplyId(Id msgId) {
		this.msgId = msgId;
	}

	@Override
	public MessageTypes getMessageType() {
		return MessageTypes.XREP_TRUEVOTE;
	}

}
